package com.yeyks.account.dal.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 后台帐户表
 * </p>
 *
 * @author yun
 * @since 2019-06-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="AccountInfo对象", description="后台帐户表")
public class AccountInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("gmt_create")
    private Date gmtCreate;

    @TableField("gmt_modified")
    private Date gmtModified;

    @ApiModelProperty(value = "父ID")
    @TableField("parent_id")
    private Integer parentId;

    @ApiModelProperty(value = "部门老大id")
    @TableField("manager_id")
    private Integer managerId;

    @ApiModelProperty(value = "账户区域")
    @TableField("area")
    private String area;

    @ApiModelProperty(value = "省份代码")
    @TableField("province_code")
    private String provinceCode;

    @ApiModelProperty(value = "市代码")
    @TableField("city_code")
    private String cityCode;

    @ApiModelProperty(value = "区县代码")
    @TableField("country_code")
    private String countryCode;

    @TableField("phone")
    private String phone;

    @ApiModelProperty(value = "固定电话")
    @TableField("tel")
    private String tel;

    @ApiModelProperty(value = "用于账户登陆的账户名")
    @TableField("username")
    private String username;

    @ApiModelProperty(value = "真实姓名")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "妮称")
    @TableField("nickname")
    private String nickname;

    @TableField("password")
    private String password;

    @ApiModelProperty(value = "性别")
    @TableField("gender")
    private Boolean gender;

    @ApiModelProperty(value = "账户是否有效")
    @TableField("valid")
    private Boolean valid;

    @ApiModelProperty(value = "当前账户状态")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "账户的类型，1总公司，2省级代理，3市代理，4酒店运营商，5酒店 10 运营商 11服务商  12 卡商，20小v运营商，21小v服务商，22小v卡商")
    @TableField("type")
    private Integer type;

    @ApiModelProperty(value = "电子邮箱")
    @TableField("email")
    private String email;

    @TableField("extra_info")
    private String extraInfo;

    @ApiModelProperty(value = "地址详情")
    private transient String addressDetail;

    @ApiModelProperty(value = "部门id")
    @TableField("dept_id")
    private Integer deptId;

    @ApiModelProperty(value = "床垫订单佣金比例(万分比)")
    @TableField("mattress_rate")
    private Integer mattressRate;

    @ApiModelProperty(value = "c2b订单佣金比例(万分比)")
    @TableField("c2b_rate")
    private Integer c2bRate;

    /**
     * 角色ID列表
     */
    @TableField(exist=false)
    private List<Long> roleIdList;

    /**
     * 部门名称
     */
    @TableField(exist=false)
    private String deptName;

    @TableField("old_password")
    private String oldPassword;

    @ApiModelProperty("父类名称")
    @TableField(exist=false)
    private String parentName;


    public static final String ID = "id";

    public static final String GMT_CREATE = "gmt_create";

    public static final String GMT_MODIFIED = "gmt_modified";

    public static final String PARENT_ID = "parent_id";

    public static final String MANAGER_ID = "manager_id";

    public static final String AREA = "area";

    public static final String PROVINCE_CODE = "province_code";

    public static final String CITY_CODE = "city_code";

    public static final String COUNTRY_CODE = "country_code";

    public static final String PHONE = "phone";

    public static final String TEL = "tel";

    public static final String USERNAME = "username";

    public static final String NAME = "name";

    public static final String NICKNAME = "nickname";

    public static final String PASSWORD = "password";

    public static final String GENDER = "gender";

    public static final String VALID = "valid";

    public static final String STATUS = "status";

    public static final String TYPE = "type";

    public static final String EMAIL = "email";

    public static final String EXTRA_INFO = "extra_info";

    public static final String DEPT_ID = "dept_id";

    public static final String MATTRESS_RATE = "mattress_rate";

    public static final String C2B_RATE = "c2b_rate";

    public static final String OLD_PASSWORD = "old_password";

}
